# 作者: YYJ
# 2025年07月12日13时56分13秒
# 2486249622@qq.com
from threading import Thread, active_count
import time

def sing():
    for i in range(30):
        print("正在唱歌...%d" % i)
        time.sleep(1)

def dance():
    for i in range(30):
        print("正在跳舞...%d" % i)
        time.sleep(1)

if __name__ == '__main__':
    t1 = Thread(target=sing)
    t2 = Thread(target=dance)
    t1.start()
    t2.start()
    print(f"当前线程数量{active_count()}")
    t1.join()
    t2.join()
